import Axios from "./../utils/axios";
import api from "./../api/index";
//房产维修展示
function maintenancePage(limit,page,hpName){
    return Axios.post(api.housePropertyMaintenance.maintenancePage,{limit,page,hpName})
}
//房产维修更新
function maintenanceUpdate(){
    return Axios.put(api.housePropertyMaintenance.maintenanceUpdate)
}
//房产维修根据Id查找
function maintenanceFindById(id){
    return Axios.get(api.housePropertyMaintenance.maintenanceFindById,{id})
}
//房产维修导出
function maintenanceDerivedText(){
    return Axios.get(api.housePropertyMaintenance.maintenanceDerivedText)
}
//房产维修根据Id批量删除
function maintenanceDeletes(){
    return Axios.delete(api.housePropertyMaintenance.maintenanceDeletes)
}
//房产维修根据Id删除
function maintenanceDelete(Id){
    return Axios.delete(api.housePropertyMaintenance.maintenanceDelete)
}
//房产维修添加
function maintenanceAdd(){
    return Axios.post(api.housePropertyMaintenance.maintenanceAdd)
}
export default{
    maintenancePage,
    maintenanceUpdate,
    maintenanceFindById,
    maintenanceDerivedText,
    maintenanceDeletes,
    maintenanceDelete,
    maintenanceAdd
}